package com.fofia.iotweb.web.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.noear.snack.annotation.ONodeAttr;

import java.io.Serializable;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class LoginUserDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ONodeAttr(name = "userId")
    private long userId;

    //登录名
    @ONodeAttr(name = "loginName")
    private  String loginName;
    //用户名
    @ONodeAttr(name = "userName")
    private  String userName;
    //校色
    @ONodeAttr(name = "roleId")
    private long roleId;
    //头像
    @ONodeAttr(name = "avatar")
    private  String avatar;
    //电话
    @ONodeAttr(name = "tel")
    private String tel;
    //性别
    @ONodeAttr(name = "gender")
    private int gender;
    //邮箱
    @ONodeAttr(name = "email")
    private String email;
    //部门
    @ONodeAttr(name = "deptName")
    private String deptName;
    //登录ip
    @ONodeAttr(name = "loginIp")
    private String loginIp;
    //超管
    @ONodeAttr(name = "superRole")
    private boolean superRole;
    //登录时间
    @ONodeAttr(name="loginTime",format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;
}
